package com.xlong.BeanEntity;

import java.io.Serializable;

import org.springframework.web.context.request.async.DeferredResult;

import com.alibaba.fastjson.JSONObject;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskEntity{
	private String taskId;

    private DeferredResult<ResponseMsg<JSONObject>> taskResult;

    private JSONObject json;

    @Override
    public String toString() {
        return "Task{" +
                "taskId=" + taskId +
                ", taskResult" + "{responseMsg=" + taskResult.getResult() + "}" +
                '}';
    }
}
